import { defineStore } from 'pinia';

export const useUserStore = defineStore('user', {
    state: () => ({
        name: '',
        email: ''
    }),
    persist: true,
    actions: {
        updateName(newName: string) {
            this.name = newName;
        },
        updateEmail(newEmail: string) {
            this.email = newEmail;
        }
    }
});
